/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import org.joda.time.DateTime;
/**
 * Software version information
 */
@Schema(description = "Software version information")

public class SoftwareVersionData {
  @JsonProperty("restApiVersion")
  private String restApiVersion = null;

  @JsonProperty("sdsServerVersion")
  private String sdsServerVersion = null;

  @JsonProperty("buildDate")
  private DateTime buildDate = null;

  @JsonProperty("scmRevisionNumber")
  private String scmRevisionNumber = null;

  @JsonProperty("isDracoonCloud")
  private Boolean isDracoonCloud = null;

  public SoftwareVersionData restApiVersion(String restApiVersion) {
    this.restApiVersion = restApiVersion;
    return this;
  }

   /**
   * REST API version
   * @return restApiVersion
  **/
  @Schema(required = true, description = "REST API version")
  public String getRestApiVersion() {
    return restApiVersion;
  }

  public void setRestApiVersion(String restApiVersion) {
    this.restApiVersion = restApiVersion;
  }

  public SoftwareVersionData sdsServerVersion(String sdsServerVersion) {
    this.sdsServerVersion = sdsServerVersion;
    return this;
  }

   /**
   * DRACOON server version
   * @return sdsServerVersion
  **/
  @Schema(required = true, description = "DRACOON server version")
  public String getSdsServerVersion() {
    return sdsServerVersion;
  }

  public void setSdsServerVersion(String sdsServerVersion) {
    this.sdsServerVersion = sdsServerVersion;
  }

  public SoftwareVersionData buildDate(DateTime buildDate) {
    this.buildDate = buildDate;
    return this;
  }

   /**
   * Build date
   * @return buildDate
  **/
  @Schema(required = true, description = "Build date")
  public DateTime getBuildDate() {
    return buildDate;
  }

  public void setBuildDate(DateTime buildDate) {
    this.buildDate = buildDate;
  }

  public SoftwareVersionData scmRevisionNumber(String scmRevisionNumber) {
    this.scmRevisionNumber = scmRevisionNumber;
    return this;
  }

   /**
   * Revision number
   * @return scmRevisionNumber
  **/
  @Schema(required = true, description = "Revision number")
  public String getScmRevisionNumber() {
    return scmRevisionNumber;
  }

  public void setScmRevisionNumber(String scmRevisionNumber) {
    this.scmRevisionNumber = scmRevisionNumber;
  }

  public SoftwareVersionData isDracoonCloud(Boolean isDracoonCloud) {
    this.isDracoonCloud = isDracoonCloud;
    return this;
  }

   /**
   * &amp;#128640; Since v4.24.0  Determines if the DRACOON Core is deployed in the cloud environment
   * @return isDracoonCloud
  **/
  @Schema(description = "&#128640; Since v4.24.0  Determines if the DRACOON Core is deployed in the cloud environment")
  public Boolean isIsDracoonCloud() {
    return isDracoonCloud;
  }

  public void setIsDracoonCloud(Boolean isDracoonCloud) {
    this.isDracoonCloud = isDracoonCloud;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SoftwareVersionData softwareVersionData = (SoftwareVersionData) o;
    return Objects.equals(this.restApiVersion, softwareVersionData.restApiVersion) &&
        Objects.equals(this.sdsServerVersion, softwareVersionData.sdsServerVersion) &&
        Objects.equals(this.buildDate, softwareVersionData.buildDate) &&
        Objects.equals(this.scmRevisionNumber, softwareVersionData.scmRevisionNumber) &&
        Objects.equals(this.isDracoonCloud, softwareVersionData.isDracoonCloud);
  }

  @Override
  public int hashCode() {
    return Objects.hash(restApiVersion, sdsServerVersion, buildDate, scmRevisionNumber, isDracoonCloud);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SoftwareVersionData {\n");
    
    sb.append("    restApiVersion: ").append(toIndentedString(restApiVersion)).append("\n");
    sb.append("    sdsServerVersion: ").append(toIndentedString(sdsServerVersion)).append("\n");
    sb.append("    buildDate: ").append(toIndentedString(buildDate)).append("\n");
    sb.append("    scmRevisionNumber: ").append(toIndentedString(scmRevisionNumber)).append("\n");
    sb.append("    isDracoonCloud: ").append(toIndentedString(isDracoonCloud)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
